﻿package infos 
{
	import debugs.Debug;
	import net.netvars;
	/**
	 * ...
	 * @author keys_star@163.com
	 */
	public class LRCitem 
	{
		public var LrcItem:Array;
		public function LRCitem() 
		{
			init();
		}
		public function init():void {
			LrcItem = netvars.getVar("LrcItem");
		}
		public function get length():uint {
			return LrcItem.length;
		}
		public function getLrc(id):LRCinfo {
			var info = LrcItem[id];
			return info;
		}
		public function getAllTime():Array {
			var arr:Array = new Array;
			for (var i = 0; i < LrcItem.length; i++ ) {
				var lrcInfo:LRCinfo = LrcItem[i];
				arr.push(lrcInfo.startTime);
				for (var j = 0; j < lrcInfo.tirgger.length; j++ ) {
					var tirggInfo:triggerInfo = lrcInfo.tirgger[j];
					arr.push(tirggInfo.startTime);
				}
			}
			return arr;
		}
	}
}